// PlayerMgr.cpp

#include "stdafx.h"
#include "PlayerMgr.h"

PlayerMgr* PlayerMgr::m_pInstance = NULL;

PlayerMgr::PlayerMgr()
{

};

PlayerMgr::PlayerMgr(const PlayerMgr&)
{

};

PlayerMgr& PlayerMgr::operator= (const PlayerMgr&)
{
	return *this;
};

PlayerMgr* PlayerMgr::GetInstance()
{
	if (m_pInstance == NULL)
	{  
		m_pInstance = new PlayerMgr;
	};
	return m_pInstance;

};

bool PlayerMgr::AddPlayer(dword p_Id)
{
	if (FindPlayer(p_Id))
	{
		return false;
	};

	return true;
};

void PlayerMgr::DeletePlayer(dword p_Id)
{

};

int PlayerMgr::CheckStatus(dword p_Id)
{
	return 0;
};

bool PlayerMgr::FindPlayer(dword p_Id)
{
	/*int idx = m_xNet->m_axPeers.Find(p_Id);
	int idx2 = m_xWorld->m_axPlayers.Find(p_Id);
	if ((idx != -1)&&(idx2 != -1))
	{
		return true;
	};*/

	return false;
};